﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Configuration;
using System.Security.Cryptography;
using System.IO;

namespace Neoseeker.NAMFox.Tests.Configuration
{
    public class CredentialsElement : ConfigurationElement
    {
        private const string PasswordAttributeName = "password";
        private const string UserNameAttributeName = "userName";

        /// <summary>
        /// Gets or sets the password.
        /// </summary>
        [ConfigurationProperty(PasswordAttributeName, IsRequired = true)]
        public string Password
        {
            get { return (string)this[PasswordAttributeName]; }
            set { this[PasswordAttributeName] = value; }
        }

        /// <summary>
        /// Gets or sets the name of the user.
        /// </summary>
        [ConfigurationProperty(UserNameAttributeName, IsRequired = true)]
        public string UserName
        {
            get { return (string)this[UserNameAttributeName]; }
            set { this[UserNameAttributeName] = value; }
        }
    }
}
